<template>
  <div class="color">
    <div class="primary"> 主色#0052D9 </div>
    <div class="flex">
      <div class="error"> 警告色#E22C4C </div>
      <div class="success"> 成功色#09B840 </div>
      <div class="warning"> 提醒色#F5820F </div>
      <div class="blueone"> 提示蓝#3C81F0 </div>
    </div>
    <div class="flex">
      <div class="title"> 标题色#222222 </div>
      <div class="subtitle"> 次标题#444444 </div>
      <div class="text"> 正文#666666 </div>
      <div class="annotation"> 注释#999999 </div>
      <div class="border"> 线框#f0f0f0 </div>
      <div class="hui"> 置灰#C2C2C2 </div>
      <div class="bgcolor"> 背景色#F5F6F7 </div>
      <div class="zuduan"> 隔断#FAFAFA </div>
    </div>

    <h1>概述</h1>
    <div>颜色定义于全局less</div>
    <div>
      <div
        >使用方法只需要引入对应的属性即可,例：background:@dz-primary-color;即可生成对应主色的背景颜色</div
      >
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="less">
  h1 {
    margin-top: 50px;
    font-size: 30px;
    font-weight: 600;
  }

  div {
    line-height: 22px;
  }

  .color {
    padding: 50px;
  }

  .primary {
    width: 100px;
    height: 100px;
    background-color: @dz-primary-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .flex {
    display: flex;
    align-items: center;
    margin-top: 20px;
  }

  .error {
    width: 100px;
    height: 100px;
    background-color: @dz-error-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .success {
    width: 100px;
    height: 100px;
    background-color: @dz-success-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .warning {
    width: 100px;
    height: 100px;
    background-color: @dz-warning-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .blueone {
    width: 100px;
    height: 100px;
    background-color: #3c81f0;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .title {
    width: 100px;
    height: 100px;
    background-color: @dz-title-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .subtitle {
    width: 100px;
    height: 100px;
    background-color: @dz-subtitle-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .text {
    width: 100px;
    height: 100px;
    background-color: @dz-text-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .annotation {
    width: 100px;
    height: 100px;
    background-color: @dz-annotation-color;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .border {
    width: 100px;
    height: 100px;
    background-color: @dz-border-color;
    color: #000;
    line-height: 100px;
    text-align: center;
  }
  .hui {
    width: 100px;
    height: 100px;
    background-color: #c2c2c2;
    color: #fff;
    line-height: 100px;
    text-align: center;
  }

  .bgcolor {
    width: 100px;
    height: 100px;
    background-color: #f5f6f7;
    color: #000;
    line-height: 100px;
    text-align: center;
  }

  .zuduan {
    width: 100px;
    height: 100px;
    background-color: #fafafa;
    color: #000;
    line-height: 100px;
    text-align: center;
  }

  div {
    margin-right: 10px;
  }
</style>
